#ifndef __WPTH_ARTPANEL_H__
#define __WPTH_ARTPANEL_H__

#include "wx/panel.h"

class ArtPanel : public wxPanel
{
public:
	enum{
		BITMAP_CETER = 1,
		BITMAP_STRETCH = 2
	};
public:
	ArtPanel() {}

	ArtPanel(wxWindow *parent,
		wxWindowID winid = wxID_ANY,
		const wxBitmap& bitmap = wxNullBitmap,
		const wxPoint& pos = wxDefaultPosition,
		const wxSize& size = wxDefaultSize,
		long style = wxTAB_TRAVERSAL | wxNO_BORDER,
		long artstyle = BITMAP_CETER,
		const wxString& name = wxPanelNameStr);

	virtual ~ArtPanel();

	wxBitmap GetBackgroundRegion(wxWindowID childId);
	void Redraw();

protected:
	void OnPaint(wxPaintEvent& event);
	void OnSize(wxSizeEvent& event);

	void DrawOnBitmap();

protected:
	wxBitmap* m_bitmap;
	wxBitmap m_groundBitmap;
	bool m_painted;
	long m_artStyle;
	wxSize m_size;

	DECLARE_CLASS(ArtPanel)
	DECLARE_EVENT_TABLE()
};
#endif